import { IParam, UIServiceBase } from '@core';
import { AppFrontAction, AppBackendAction } from '@core';
/**
 * 法律支撑UI服务对象基类
 *
 * @export
 * @class LawSupportUIServiceBase
 * @extends {UIServiceBase}
 */
export class LawSupportUIServiceBase extends UIServiceBase {

    /**
      * Creates an instance of LawSupportUIServiceBase
      * 
      * @param {*} [opts={}]
      * @memberof LawSupportUIServiceBase
      */
    constructor(opts: IParam = {}) {
        super(opts);
        this.initBasicData();
    }

    /**
     * 初始化基础数据
     *
     * @memberof LawSupportUIServiceBase
     */
    public initBasicData() {
        // 应用实体主键属性
        this.appDeKeyFieldName = 'lawsupportid';
        // 是否启用主状态
        this.isEnableDEMainState = false;
    }

    /**
     * 提交
     *
     * @param {*} params
     * @memberof LawSupportUIServiceBase
     */
    public async WFStart(uiAction:any, params:any){
        const actionModel =  {
             codeName:'WFStart',
             uIActionMode:'FRONT',
             actionTarget:'SINGLEDATA',
             uIActionTag:'WFSTART',
             frontPSAppView:'',
             caption:'提交',
             entityCodeName:'LawSupport',
             methodCodeName:'',
             frontProcessType:'OTHER',
             refreshMode:'1',
             htmlPageUrl:'',
             uILogicAttachMode:'REPLACE',
             nextActionCodeName:'',
             navContexts:{},
             navParams:{}
         };
        AppFrontAction.doAction(actionModel, params);
    }



}